package com.entity;

import java.io.Serializable;

/**
 * registrationtype
 * @author 
 */
public class Registrationtype implements Serializable {
    private Integer registrationtypeid;

    private String registrationtype;

    private static final long serialVersionUID = 1L;

    public Integer getRegistrationtypeid() {
        return registrationtypeid;
    }

    public void setRegistrationtypeid(Integer registrationtypeid) {
        this.registrationtypeid = registrationtypeid;
    }

    public String getRegistrationtype() {
        return registrationtype;
    }

    public void setRegistrationtype(String registrationtype) {
        this.registrationtype = registrationtype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Registrationtype other = (Registrationtype) that;
        return (this.getRegistrationtypeid() == null ? other.getRegistrationtypeid() == null : this.getRegistrationtypeid().equals(other.getRegistrationtypeid()))
            && (this.getRegistrationtype() == null ? other.getRegistrationtype() == null : this.getRegistrationtype().equals(other.getRegistrationtype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRegistrationtypeid() == null) ? 0 : getRegistrationtypeid().hashCode());
        result = prime * result + ((getRegistrationtype() == null) ? 0 : getRegistrationtype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", registrationtypeid=").append(registrationtypeid);
        sb.append(", registrationtype=").append(registrationtype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}